// login接口的参数类型
export interface loginForm {
  username: string
  password: string
}

export interface responseData {
  code: number
  message: string
  ok: string
}

// login接口的响应数据类型
export interface loginResponseData extends responseData {
  data: {
    token: string
  }
}

// 获取用户数据接口的响应数据类型
export interface userInfoResponseData extends responseData {
  data: {
    routes: string[]
    buttons: string[]
    roles: string[]
    name: string
    avatar: string
  }
}
